import request from '@/utils/request.js'

export default {
    getList() {
        return request({
            url: `/admin/core/lend/list`,
            method: 'get',
        })
    },

    showDetail(id) {
        return request({
            url: `/admin/core/lend/show/${id}`,
            method: 'get',
        })
    },

    makeLoan(id) {
        return request({
            url: `/admin/core/lend/makeLoan/${id}`,
            method: 'get'
        })
    },

    getLendItemList(id) {
        return request({
            url: `/admin/core/lendItem/getLendItemList/${id}`,
            method: 'get'
        })
    },

    getLendReturnList(id) {
        return request({
            url: `/admin/core/lendReturn/getLendReturnList/${id}`,
            method: 'get'
        })
    }
}